package com.ruoyi.culture.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.culture.mapper.CultureProjectCommentMapper;
import com.ruoyi.culture.domain.CultureProjectComment;
import com.ruoyi.culture.service.ICultureProjectCommentService;

/**
 * 文化评论Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-27
 */
@Service
public class CultureProjectCommentServiceImpl implements ICultureProjectCommentService 
{
    @Autowired
    private CultureProjectCommentMapper cultureProjectCommentMapper;

    /**
     * 查询文化评论
     * 
     * @param id 文化评论主键
     * @return 文化评论
     */
    @Override
    public CultureProjectComment selectCultureProjectCommentById(Long id)
    {
        return cultureProjectCommentMapper.selectCultureProjectCommentById(id);
    }

    /**
     * 查询文化评论列表
     * 
     * @param cultureProjectComment 文化评论
     * @return 文化评论
     */
    @Override
    public List<CultureProjectComment> selectCultureProjectCommentList(CultureProjectComment cultureProjectComment)
    {
        return cultureProjectCommentMapper.selectCultureProjectCommentList(cultureProjectComment);
    }

    /**
     * 新增文化评论
     * 
     * @param cultureProjectComment 文化评论
     * @return 结果
     */
    @Override
    public int insertCultureProjectComment(CultureProjectComment cultureProjectComment)
    {
        return cultureProjectCommentMapper.insertCultureProjectComment(cultureProjectComment);
    }

    /**
     * 修改文化评论
     * 
     * @param cultureProjectComment 文化评论
     * @return 结果
     */
    @Override
    public int updateCultureProjectComment(CultureProjectComment cultureProjectComment)
    {
        return cultureProjectCommentMapper.updateCultureProjectComment(cultureProjectComment);
    }

    /**
     * 批量删除文化评论
     * 
     * @param ids 需要删除的文化评论主键
     * @return 结果
     */
    @Override
    public int deleteCultureProjectCommentByIds(Long[] ids)
    {
        return cultureProjectCommentMapper.deleteCultureProjectCommentByIds(ids);
    }

    /**
     * 删除文化评论信息
     * 
     * @param id 文化评论主键
     * @return 结果
     */
    @Override
    public int deleteCultureProjectCommentById(Long id)
    {
        return cultureProjectCommentMapper.deleteCultureProjectCommentById(id);
    }
}
